<?php
$password = $this->formPassword('password', '', array());
$password2 = $this->formPassword('password2', '', array());
$password3 = $this->formPassword('password3', '', array());
$btnButton = $this->formSubmit('submit', 'Cập nhật', array('class'=>'blue_button'));
?>
<div class="deal">
	<div class="deal_content_top"></div>
		<div class="deal_content">
		<h3>Thay đổi mật khẩu</h3>
		<?php if(count($this->errors) > 0 || count($this->notifies) > 0): ?>
			<div class="ui-widget">
				<div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;">
				<?php foreach($this->errors as $error): ?> 
					<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
					<?php echo $error ?></p>    
				<?php endforeach ?>
				<?php foreach($this->notifies as $notify): ?> 
					<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
					<?php echo $notify ?></p>    
				<?php endforeach ?>
				</div>
			</div>
		<?php endif ?>
		<div class="profile">
			<div class="profile-left">
				<strong><?php echo $this->user->username ?></strong>
				<ul>
					<li><a href="<?php echo $this->baseUrl('index.php/user/account/edit') ?>">Sửa thông tin cá nhân</a></li>
					<li><a href="<?php echo $this->baseUrl('index.php/user/account/changepassword') ?>">Sửa mật khẩu</a></li>
					<li><a href="<?php echo $this->baseUrl('index.php/user/account/logout') ?>">Thoát</a></li>
				</ul>
			</div>
			<div class="profile-right">		
			    <form id="login-form" action="<?php echo $this->url(array("module" => "user", "controller" => "account", "action" => "changepasspost")) ?>" method="post">    
			            <table width="100%" cellpadding="5">
			                <tr>
			                    <td width="50%"><strong>Mật khẩu cũ *</strong></td>
			                    <td><?php echo $password ?></td>
			                </tr>
			                <tr>
			                    <td><strong>Mật khẩu mới *</strong></td>
			                    <td><?php echo $password2 ?></td>
			                </tr>
			                <tr>
			                    <td><strong>Xác nhận *</strong></td>
			                    <td><?php echo $password3 ?></td>
			                </tr>
			                <tr>
			                    <td>&nbsp;</td>
			                    <td><?php echo $btnButton ?></td>
			            </tr>
			        </table>
			    </form>
		    </div>
		</div>    
	</div>    
	<div class="deal_content_bottom"></div>
</div>
